package cn.mabach.cms.service;


import cn.mabach.cms.entity.SubjectCommentEntity;
import cn.mabach.result.PageResult;
import cn.mabach.result.RS;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
 * 专题评论表
 *
 * @author chenshun
 * @email 176468159@qq.com
 * @date 2019-12-27 20:51:42
 */
@Api(tags = "广告服务接口")
public interface SubjectCommentService   {

    @GetMapping("/listSubjectComment")
    @ApiOperation(value = "分页查询")
    RS<PageResult<SubjectCommentEntity>> queryPage(@RequestParam(value = "keyword", required = false) String keyword,
                                                   @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                                                   @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize);



    @GetMapping("/infoSubjectComment")
    @ApiOperation(value = "根据id查找")
    RS<SubjectCommentEntity> getByIdE(@RequestParam("id") Long id);

    @PostMapping("/saveSubjectComment")
    @ApiOperation(value = "保存")
    RS saveE(@RequestBody SubjectCommentEntity entity);

    @PostMapping("/updateSubjectComment")
    @ApiOperation(value = "修改")
    RS updateByIdE(@RequestBody SubjectCommentEntity entity);

    @PostMapping("/deleteOneSubjectComment")
    @ApiOperation(value = "根据ID删除")
    RS removeOneById(@RequestParam("id") Long id);

    @PostMapping("/deleteSubjectComment")
    @ApiOperation(value = "根据ID集合删除")
    RS removeByIdsE(@RequestBody List<Long> ids);
}

